<form autocomplete="off" class="layui-form layui-box modal-form-box" action="{:request()->url()}" data-auto="true" method="post">


    <div class="layui-form-item">
        <label class="layui-form-label">手机号</label>
        <div class="layui-input-block">
            <input  title="必须填写手机号"  required="required" name="phone" value='{$vo.phone|default=""}' placeholder="必填" class="layui-input">
        </div>
    </div>



    <div class="layui-form-item">
        <label class="layui-form-label">真实姓名</label>
        <div class="layui-input-block">
                <input   title="必须填写真实姓名"  required="required" name="name" value='{$vo.name|default=""}' placeholder="必填" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">厂家图片</label>
        <div class="layui-input-block">
            <div class='col-sm-8'>
                <img data-tips-image class='col-sm-8' src="{$vo.shop_img|default=''}"/>
                <input type="hidden" name="shop_img"  onchange="$(this).prev('img').attr('src', this.value)"
                       value="{$vo.shop_img|default=''}" class="layui-input">
                <a class="btn btn-info" style="float: right" data-file="one" data-field="shop_img ">上传图片</a>
                <p>建议上传尺寸为500x300px</p>
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">厂家名称</label>
        <div class="layui-input-block">
            <input   title="必须填写厂家名称"  required="required" name="shop_name" value='{$vo.shop_name|default=""}' placeholder="必填" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">所在经度</label>
        <div class="layui-input-block">
            <input  title="必须所在经度" name="lng" value='{$vo.lng|default=""}' placeholder="必填·" required="required" class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">所在纬度</label>
        <div class="layui-input-block">
            <input  title="必须所在纬度" name="lat" value='{$vo.lat|default=""}' placeholder="必填·" required="required" class="layui-input">
            <a href='https://lbs.qq.com/tool/getpoint/index.html'target="_blank" style="float: right;">前往选取位置</a>
            <div style="display:block;clear:both;"></div>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">详细位置</label>
        <div class="layui-input-block">
            <input  title="必须填写公司位置" name="address" value='{$vo.address|default=""}' placeholder="必填·" required="required" class="layui-input">
            <div style="display:block;clear:both;"></div>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">标语</label>
        <div class="layui-input-block">
            <input   title="必须填写厂家标语"  required="required" name="remark" value='{$vo.remark|default=""}' placeholder="必填" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">内容</label>
        <div class="layui-input-block">
            <textarea name="content">{$vo.content|default=''|htmlspecialchars_decode}</textarea>
        </div>
    </div>

    <div class="hr-line-dashed"></div>

    <div class="layui-form-item text-center">
        {if isset($vo['id'])}<input type='hidden' value='{$vo.id}' name='id'>{/if}
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
    <script>

        require(['jquery', 'ckeditor', 'angular'], function () {
            window.createEditor('[name="content"]', {height: 500});
        })
        window.form.render();</script>
</form>
